<template>
  <div class="recommend">
    <div class="title">热销推荐</div>
    <ul>
     
        <router-link v-for="item in list" :key="item.id" :to='"detail/"+item.id' class="item">
        <img
          src="http://imgs.qunarzz.com/p/tts8/1711/c1/03f766b1199ff02.jpg_r_390x260x90_a414992c.jpg"
          class="img"
          alt
        />

        <div class="item-info border-bottom">
          <p class="item-title">五星皇庭国际含早</p>
          <p class="item-desc">描述描述描述</p>
          <button class="item-button">查看详情</button>
        </div>
        </router-link>
     
      
    </ul>
  </div>
</template>
<script>
export default {
  name: "recommend",
  data(){
    return {
      
    }
  },
  props:{
    list:Array,
   
  }
};
</script>
<style lang='stylus' scoped>
@import '~@/assets/stylus/mixins.stylus';

.recommend {
  width: 100%;

  .title {
    line-height: 0.8rem;
    background: #eee;
    text-indent: 1em;
    margin-top: 0.2rem;
  }

  .item {
    display: flex;
    height: 1.9rem;
    overflow: hidden;

    .img {
      width: 1.7rem;
      height: 1.7rem;
      padding: 0.1rem;
    }
  }

  .item-info {
    flex: 1;
    min-width: 0;

    .item-title {
      line-height: 0.54rem;
      font-size: 0.32rem;
      elliplis();
    }

    .item-desc {
      line-height: 0.4rem;
      color: #ccc;
      elliplis();
    }

    .item-button {
      margin-top: 0.2rem;
      background: #ff9300;
      padding: 0 0.2rem;
      line-height: 0.44rem;
      border-radius: 0.06rem;
      color: white;
    }
  }
}
</style>
